﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImageK.Java.Extensions
{
    public static class SystemExtensions
    {
        private static readonly DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
        public static long currentTimeMillis(this DateTime dataTime)
        {
            return (long)(dataTime - Jan1st1970).TotalMilliseconds;
        }
    }
}
